package com.atguigu.gulimall.ware.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.ware.feign.fallback.MemberFeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 会员远程服务
 *
 * @author XiaoPing
 * @create 2020/7/5 16:25
 * @since 1.0.0
 */
@FeignClient(value = "gulimall-member",fallback = MemberFeignServiceFallBack.class)
public interface MemberFeignService {

    /**
     * 会员地址信息
     * @param id
     * @return
     */
    @RequestMapping("/member/memberreceiveaddress/info/{id}")
    R addrInfo(@PathVariable("id") Long id);

}
